<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <table>
        <thead>
            <tr>
                <th>id</th>
                <th>产品</th>
                <th>价格</th>
            </tr>
        </thead>
        <tbody>
            <tr th:each="product : ${products}">
                <td th:text="${product.id}"></td>
                <td th:text="${product.name}"></td>
                <td th:text="${product.price}"></td>
            </tr>
        </tbody>
        <tr>
            <td align="center">
                <p th:text="${port}"></p>
            </td>
            <td align="center" colspan="2">
                <p th:text="${version}"> spring-cloud version unknown</p>
            </td>
        </tr>
    </table>
</div>
</body>
</html>

<style>
    table {
        border-collapse: collapse;
        width: 400px;
        margin: 20px auto;
    }
    td, th {
        border: 1px solid  gray;
    }
</style>